#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define per(i, a, b) for (int i = (a); i >= (b); i--)
#define endl '\n'
const int N = 5005;

int n, money;
int s[8], c[8], p[8];
double dp[1 << 8][5005];

int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n >> money;
  rep(i, 0, n - 1) cin >> s[i] >> c[i] >> p[i];
  int mask = (1 << n) - 1;
  rep(i, 1, mask) {
    rep(j, 1, money) {
      rep(k, 0, n - 1) {
        if ((i & (1 << k)) && j >= c[k]) {
          double x = p[k] / 100.0 * (s[k] + dp[i ^ (1 << k)][j - c[k]]);
          double y = (100 - p[k]) / 100.0 * dp[i][j - c[k]];
          dp[i][j] = max(dp[i][j], x + y);
        }
      }
    }
  }
  cout << fixed << setprecision(10) << dp[mask][money];
  return 0;
}